<?php

my_component_load('list_kalender',false );
my_component_load('a_kalkulasi' );
$task = isset($_GET['task']) ? $_GET['task'] : ""; 
$pagename = "Proses Absen";
if($task =='calc'){
	ini_set('max_execution_time','10000');
	$query = "UPDATE opsi_seting SET value='{$_SESSION['user_id']}' WHERE name='kalkulasi'";
	my_query($query);
	absen_upload_kalkulasi();
	$query = "UPDATE opsi_seting SET value='0' WHERE name='kalkulasi'";
	my_query($query);
	echo button_icon( 'check2.png' ,'')."<br/>Done !!";
	exit;
}else{
	$content = page_kalkulasi();
}
generate_my_web($content,$pagename );